<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!--jstl标签  -->
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>form.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>
<body>
<center>
<h1>Hello Jfinal,list.jsp</h1>
</center>
<a href="user/form">新增用户</a>
<table>
	<thead>
	<th>ID</th><th>姓名</th><th>年龄</th><th>性别</th><th>备注信息</th><th>操作</th>
	</thead>
	<tbody>
	<c:forEach items="${users }" var="user" >
	<tr><td>${user.id}</td><td>${user.name}</td><td>${user.age}</td><td>${user.sex}</td><td>${user.remark}</td><td><a href="user/edit/${user.id}"style="color:blue;">修改</a><a href="user/del/${user.id}" style="color:red;">删除</a></td></tr>
	<!-- <tr><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td><a href="edit"style="color:blue;">修改</a><a href="del" style="color:red;">删除</a></td></tr>  -->
	</c:forEach>
	</tbody> 
</table>
</body>
</html>